package com.java.zhuiyun.api.carousel.service;

import com.java.zhuiyun.api.carousel.entity.Carousel;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;
import com.java.zhuiyun.util.pageUtil.PageResult;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.multipart.MultipartFile;

/**
 * @InterfaceName CarouselService
 * @Description TODO
 * @Author wuwan
 * @Date 2023/8/15 16:18
 **/
public interface CarouselService {
    /*
    * @Author wuwan
    * @Description todo 轮播图数据查询
    * @Date 2023/8/15 21:05
    * @Return
    * @param null
    */
    PageResult getCarousel(PageRequest pageRequest);
    /*
    * @Author wuwan
    * @Description todo 轮播图添加
    * @Date 2023/8/15 21:04
    * @Return
    * @param null
    */
    CommonResult addCarousel(Carousel carousel, MultipartFile file);
    /*
    * @Author wuwan
    * @Description todo 轮播图信息修改
    * @Date 2023/8/16 16:12
    * @Return
    * @param null
    */
    CommonResult updateCarousel(Carousel carousel, MultipartFile file);

    /*
     * @Author wuwan
     * @Description todo 轮播图启用方法
     * @Date 2023/8/16 16:05
     * @Return
     * @param null
     */
    CommonResult ReleaseCarousel(Integer id,Integer carouselStatus);
    /*
    * @Author wuwan
    * @Description 轮播图删除功能
    * @Date 2023/9/2 10:20
    * @Return
    * @param null
    */
    CommonResult deleteData(Integer id);
}
